package com.lyfei.ydc.api;

import com.lyfei.ydc.core.interceptors.ScopeLevel;
import com.lyfei.ydc.domain.vo.BannerVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.lyfei.ydc.service.BannerService;

@RestController
@RequestMapping("/banner")
public class BannerController {
    @Autowired
    private BannerService bannerService;

    @GetMapping("/top")
    public BannerVo getTopBanner() {
        return bannerService.getBannerDetailByName("top");
    }
}
